From: Dan Nicolaescu Date: Sat, 1 Dec 2007 20:34:23 +0000 (+0000) Subject: * (log-edit-show-diff): Error out if the diff function is not set. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~25325 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=37b72bf5ea01a31945194e076260e932c44902c4;p=emacs.git * (log-edit-show-diff): Error out if the diff function is not set. --- diff --git a/lisp/log-edit.el b/lisp/log-edit.el index 46f1544d9eb..a2f749ad127 100644 --- a/lisp/log-edit.el +++ b/lisp/log-edit.el @@ -435,7 +435,9 @@ If you want to abort the commit, simply delete the buffer." (defun log-edit-show-diff () "Show the diff for the files to be committed." (interactive) - (funcall log-edit-diff-function)) + (if (functionp log-edit-diff-function) + (funcall log-edit-diff-function) + (error "Diff functionality has not been setup"))) (defun log-edit-show-files () "Show the list of files to be committed."